home *** CD-ROM | disk | FTP | other *** search
/ The Learning Curve / The Learning Curve (Weird Science, 1996).iso / mathematics / plotters / mathplot / installlibs < prev    next >
Encoding:
Text File  |  1993-04-01  |  1.1 KB  |  42 lines

  1. .K ""
  2. echo "This script will install the following libraries, after first checking"
  3. echo "to see if you already have one installed:"
  4. echo ""
  5. echo "    mtool.library"
  6. echo ""
  7. echo "If you have one installed, it will check the version number of the"
  8. echo "installed one and ask if you wish to update it."
  9. echo ""
  10.  
  11. FailAt 20
  12.  
  13. ask "Do you wish to continue with the installation? [y/n]"
  14. if not warn
  15.     skip NoInstall
  16. endif
  17.  
  18. if not exists libs:mtool.library
  19.   echo "No existing mtool.library, installing version 36.10..."
  20.   copy mtool.library libs:mtool.library
  21. else
  22.   failat 20
  23.   echo "Found " noline
  24.   version libs:mtool.library 36 10
  25.   if warn
  26.     ask "Do you wish to update libs:mtool.library to version 36.10? [y/n]"
  27.     if warn
  28.       echo "Updating libs:mtool.library..."
  29.       protect libs:mtool.library rwed
  30.       copy mtool.library libs:mtool.library
  31.     else
  32.       echo "libs:mtool.library unchanged."
  33.     endif
  34.   else
  35.     echo "The current installed version is up to date."
  36.   endif
  37. endif
  38.  
  39. lab NoInstall
  40. echo "*nAll Done.  Click close gadget to get rid of window."
  41. endcli > nil:
  42.